package cn.jeefast.modules.platform.controller;


import cn.jeefast.common.entity.MbResearchStepDataTemplateMainIndicators;
import cn.jeefast.common.entity.MbResearchStepDataTemplateObjectiveIndicators;
import cn.jeefast.common.utils.R;
import cn.jeefast.modules.platform.service.MbResearchStepDataTemplateObjectiveIndicators1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import cn.jeefast.common.base.BaseController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author theodo
 * @since 2020-01-06
 */
@RestController
@RequestMapping("/mbResearchStepDataTemplateObjectiveIndicators")
@CrossOrigin
public class MbResearchStepDataTemplateObjectiveIndicators1Controller extends BaseController {

    @Autowired
    private MbResearchStepDataTemplateObjectiveIndicators1Service researchStepDataTemplateObjectiveIndicators1Service;

    /**
     * 批量添加或修改主要指标
     * @param list
     * @return
     */
    @RequestMapping("/addOrUpdate")
    public R addOrUpdate(@RequestBody List<MbResearchStepDataTemplateObjectiveIndicators> list){
        return researchStepDataTemplateObjectiveIndicators1Service.addOrUpdate(list);
    }
}
